package com.sjtu.bookread.service;

import com.sjtu.bookread.obj.BookListObj;
import com.sjtu.bookread.obj.BookObj1;
import com.sjtu.bookread.obj.ChapterObj1;
import com.sjtu.bookread.obj.LoginObj;

import okhttp3.RequestBody;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.POST;

public interface UrlService1 {
    //登录
    @POST("/login")
    Call<LoginObj> GetLogin(@Body RequestBody body);

    @POST("/register")
    Call<LoginObj> GetRegister(@Body RequestBody body);

    @POST("/interaction")
    Call<Void> Submit_view_reader(@Body RequestBody body);

    @POST("/interaction")
    Call<Void> Submit_view_info(@Body RequestBody body);

    @POST("/interaction")
    Call<Void> Submit_view_stay(@Body RequestBody body);

    @POST("/interaction")
    Call<Void> Submit_view_speed(@Body RequestBody body);


    @POST("/interaction")
    Call<Void> Submit_view_rate(@Body RequestBody body);

    @POST("/interaction")
    Call<Void> Submit_view_great(@Body RequestBody body);

    @POST("/recommendation")
    Call<BookListObj> GetRecom(@Body RequestBody body);

    @POST("/hotbook")
    Call<BookListObj> GetHotbook();

    @POST("/bookinfo")
    Call<BookObj1> GetBook(@Body RequestBody body);

    @POST("/booktext")
    Call<ChapterObj1> GetChapter(@Body RequestBody body);

    @POST("/shelf")
    Call<BookListObj> GetShelf(@Body RequestBody body);

    @POST("/modifyshelf")
    Call<Void> ModifyShelf(@Body RequestBody body);

    @POST("/booksearch")
    Call<BookListObj> Search(@Body RequestBody body);

    @POST("/specialsearch")
    Call<BookListObj> SpecialSearch(@Body RequestBody body);

}
